package cn.doctorpda.meeting.bean;

import android.text.TextUtils;

import org.w3c.dom.Text;

/**
 * Created by huangjinlong on 2016/5/13.
 */
public class Msg {
    private String status;
    private int code;
    private String msg;
    private String message;
    private String data;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        if (TextUtils.isEmpty(msg)){
            return message;
        }
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public boolean isSuccess(){
        if (status.equals("success") || code == 0){
            return true;
        }
        return false;
    }

}
